//
//  CPEditPasswordVC.m
//  CPApp
//
//  Created by yobet on 2018/3/23.
//  Copyright © 2018年 Class. All rights reserved.
//

#import "CPEditPasswordVC.h"

@interface CPEditPasswordVC ()
@property (weak, nonatomic) IBOutlet UILabel *account;
@property (weak, nonatomic) IBOutlet UITextField *yuan_TF;
@property (weak, nonatomic) IBOutlet UITextField *newpass_tf;
@property (weak, nonatomic) IBOutlet UITextField *text;

@end

@implementation CPEditPasswordVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"修改密码";
    self.tableView.tableFooterView = [UIView new];
    self.account.text = [mUserDefaults objectForKey:@"username"];
}

- (IBAction)submitBtn:(UIButton *)sender {
    [[AVUser currentUser] updatePassword:self.yuan_TF.text newPassword:self.newpass_tf.text block:^(id  _Nullable object, NSError * _Nullable error) {
         [self.navigationController popViewControllerAnimated:YES];
    }];
}

@end
